package TEST;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import shared.Player.Player;

public class PlayerTest {
	Player p1;
	Player p2;

	@Before
	public void createPlayer() {
		p1 = new Player("Juku", 1);
		p2 = new Player("Kati", 1, 2);
	}

	@Test
	public void testPlayerName() {
		assertEquals("Juku", p1.name);
		assertEquals("Kati", p2.name);
	}
	
	@Test
	public void testPlayerID() {
		assertEquals(1, p1.playerID);
		assertEquals(2, p2.playerID);
	}
	
	@Test
	public void testGameNo(){
		assertEquals(0, p1.GameNo);
		assertEquals(1, p2.GameNo);	
	}

}
